package com.neusoft.service.impl;

import com.neusoft.dao.DictDao;
import com.neusoft.pojo.Dict;
import com.neusoft.service.DictService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DictServiceImpl implements DictService {

    @Resource
    DictDao dictDao;

    @Override
    public List<Dict> selectDictAll() {
        return dictDao.selectDictAll();
    }

    public int insertDict(Dict dict){
        return dictDao.insertDict(dict);
    }

    @Override
    public int deleteDict(String dictId) {
        return dictDao.deleteDict(dictId);
    }
}
